#include "Particle.h"

Particle::Particle()
{
	V = vector<double>(2, 0.0); pos = vector<double>(2, 0.0);
	diam = 0.0;
	rho = 0.0;
	mass = 0.0;
	temp = 0.0;
	time = 0.0;
	ID = 0;
	SF = 0.0;
}

Particle::Particle(const Particle& p0)
{
	V = p0.V; pos = p0.pos;
	diam = p0.diam;
	rho = p0.rho;
	mass = p0.mass;
	temp = p0.temp;
	time = p0.time;
	ID = p0.ID;
	SF = p0.SF;
}

void Particle::UpdateSF(const Flag& pFlag, const Particle& pLastTimeStep, int t)
{
	if (t > 0)
	{
		if (pFlag.reachOutlet)
		{
			SF = pLastTimeStep.SF;
		}
	}
}